package com.example.prodect.exeception;

import com.example.prodect.enums.ResultEnum;

public class ProductExeception extends RuntimeException{
    private Integer code;

    public ProductExeception(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public ProductExeception(ResultEnum resultEnum) {
        super(resultEnum.getMessag());
        this.code = code;
    }
}
